<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<view class="title">Help</view>
			<view class="right"></view>
		</view>
		<view class="questions">
			<view class="question" v-for="(item,index) in 5" :class="{'select_qus':whichQues==index}"
				@click="whichQues=index">Question type</view>
		</view>
		<view class="row">
			<view class="row_top">
				<view class="small_title">Question TitleQuestion Title</view>
				<image class="next" src="/static/img/right.png"></image>
			</view>
			<view class="text">Introduction copy of travel safety tips,Introduction copy of tr</view>
		</view>
		<view class="row">
			<view class="row_top">
				<view class="small_title">Question TitleQuestion Title</view>
				<image class="next" src="/static/img/right.png"></image>
			</view>
			<view class="text">Introduction copy of travel safety tips,Introduction copy of tr</view>
		</view>
		<view class="row">
			<view class="row_top">
				<view class="small_title">Question TitleQuestion Title</view>
				<image class="next" src="/static/img/right.png"></image>
			</view>
			<view class="text">Introduction copy of travel safety tips,Introduction copy of tr</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
				//ques的索引
				whichQues: '0'
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		position: relative;
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		margin: 0rpx auto;
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 57rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}

	.questions {
		width: 92%;
		margin: 80rpx auto;
		display: flex;
		align-items: center;
		overflow-x: auto;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
	}

	.question {
		flex: 0 0 auto;
		margin-right: 65rpx;
	}

	.select_qus {
		color: #34BA78;
	}

	.row {
		width: 92%;
		margin: 0 auto 50rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		border-bottom: 1rpx solid #F4F4F4;
	}

	.row_top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 30rpx;
	}

	.next {
		width: 11rpx;
		height: 20rpx;
	}

	.small_title {
		font-family: Mont;
		font-weight: 600;
		font-size: 28rpx;
	}

	.text {
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #2B2B2B;
		white-space: pre-wrap;
		word-wrap: break-word;
	}
</style>